/**
 * 
 */

function showAddCourse(url) {
	var add_course_button = document.getElementById("add_or_remove_course_button");
	var add_course_span = document.getElementById("add_course");
	
	if (add_course_button.innerHTML == "Add new course") {
		add_course_button.innerHTML = "Hide";
	}
	else {
		add_course_button.innerHTML = "Add new course";
		add_course_span.innerHTML = "";
		return;
	}
	
	
	var request = new XMLHttpRequest();	
	request.open("GET", url, false);
	request.send(null);
	
	if(request.status==200){
		add_course_span.innerHTML = request.responseText;
	}      
	else {
		//timeSpan.innerHTML = "<i>Cannot load add course form...<\/i>";
		add_course_span.innerHTML = "<i>Cannot load add course form...<\/i>";
	}
}
